home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / rexx / infrarexx1_7.lha / InfraRexx / Install < prev    next >
Text File  |  1995-10-21  |  20KB  |  1,003 lines

  1. ;
  2. ; InfraRexx 1.7 Installer Script
  3. ; $VER: InfraRexx_Install 1.1 (7.4.95)
  4. ;
  5. (message
  6.   "\nWelcome to the\nInfraRexx Installer Utility\n\n"
  7.   "This program will install\n"
  8.   "InfraRexx release 1.7.\n"
  9.   "\n"
  10.   "The 'Help...' button will provide\n"
  11.   "help during the installation.\n"
  12.   "\n"
  13.   "InfraRexx and InfraJoy are\n"
  14.   "⌐ 1994-1995 by Leon Woestenberg\n"
  15.   "(Digital Disturbance) and\n"
  16.   "Jeroen Steenblik.\n"
  17. )
  18. (welcome)
  19.  
  20. ;
  21. ; check AmigaOS version
  22. ;
  23. (transcript "Checking AmigaOS version...")
  24. (if
  25.   (<
  26.     (/
  27.       (getversion)
  28.       65536
  29.     )
  30.     37
  31.   )
  32.   (
  33.     (transcript "Aborting because AmigaOS Release 2.04 (or higher) is not available.")
  34.     (abort "\nInfraRexx requires at least AmigaOS Release 2.04 to run.\n\n"
  35.        "Press the Proceed button to abort the installation procedure.")
  36.  
  37.   )
  38.   (transcript "AmigaOS version 2.04 (or higher) found. Proceeding.")
  39. )
  40. (complete 0)
  41.  
  42. ;
  43. ; Ask for the version of the used hardware
  44. ;
  45. (set hardware-choice
  46.   (askchoice
  47.     (prompt "What hardware is used?\n(Use 'Help' for more information)")
  48.     (help "About the hardware:\n"
  49.       "    InfraRexx requires a small hardware extension in order to "
  50.       "operate. Due to the availability of several hardware versions "
  51.       "the software has to be configured to use the correct version.\n"
  52.       "\n"
  53.       "Determining the hardware version:\n"
  54.       "    If you have ordered the hardware directly from the authors, you "
  55.       "can read the version number from the print circuit board. If there's "
  56.       "no version indication, you have an InfraJoy v1 design.\n"
  57.       "\n"
  58.       "    If you built (or later patched) the hardware yourself, check the "
  59.       "building (or patch) documentation to determine the version number.\n"
  60.       "\n"
  61.       "    If you have no hardware yet, you can either order it from the authors "
  62.       "or build it yourself. See the documentation for more information on this. "
  63.       "If you choose to install the software now, please select the latest version number.\n"
  64.       "\n"
  65.       @askchoice-help
  66.     )
  67.     (choices
  68.       "InfraJoy v1"
  69.       "InfraJoy v2"
  70.       "InfraJoy v3"
  71.       "InfraJoy v4"
  72.     )
  73.     (default 3)
  74.   )
  75. )
  76.  
  77. ;
  78. ; Ask where to install the InfraRexx drawer
  79. ;
  80. (set infrarexx-dest
  81.   (tackon
  82.     (askdir
  83.       (prompt "Where should the InfraRexx drawer be installed?")
  84.       (help
  85.     "InfraRexx Destination:\n"
  86.     "    Please choose a place on your (hard)disk where you would like "
  87.     "the InfraRexx software, and documentation to be installed. A new "
  88.     "drawer called 'InfraRexx' will be created there, and most of the "
  89.     "files will be copied there.\n"
  90.     "\n"
  91.       @askdir-help)
  92.       (default @default-dest)
  93.     )
  94.     "InfraRexx"
  95.   )
  96. )
  97. (set @default-dest infrarexx-dest)
  98. (complete 10)
  99.  
  100. ;
  101. ; Ask whether to install MagicWB icons
  102. ;
  103. (set magicwb-bool
  104.   (askbool
  105.     (prompt
  106.       "Install MagicWB icons?"
  107.     )
  108.     (help
  109.        "MagicWB Icons\n"
  110.        "    Magic Workbench (MWB) is a Workbench appearance. "
  111.        "If you have MagicWB installed, you're advised to use "
  112.        "these icons. MagicWB is copyrighted by Martin Huttenloher.\n"
  113.     )
  114.   )
  115. )
  116. ;
  117. ; Set the source direcoty for icons
  118. ;
  119. (set icons-source
  120.   (if
  121.     (<>
  122.       magicwb-bool
  123.       0
  124.     )
  125.     (
  126.       "MagicWB"
  127.     )
  128.     (
  129.       ""
  130.     )
  131.   )
  132. )
  133.  
  134. (copyfiles
  135.   (source "InfraRexxEditor")
  136.   (dest infrarexx-dest)
  137.   (infos)
  138. )
  139. (copyfiles
  140.   (source
  141.     (tackon
  142.       icons-source
  143.       "InfraRexxEditor.info"
  144.     )
  145.   )
  146.   (dest infrarexx-dest)
  147. )
  148. (complete 20)
  149.  
  150. (copyfiles
  151.   (source "InfraRexxDaemon")
  152.   (dest infrarexx-dest)
  153.   (infos)
  154. )
  155. (copyfiles
  156.   (source
  157.     (tackon
  158.       icons-source
  159.       "InfraRexxDaemon.info"
  160.     )
  161.   )
  162.   (dest infrarexx-dest)
  163. )
  164.  
  165. (complete 30)
  166.  
  167. ;
  168. ; Set the hardware version tooltypes
  169. ;
  170. (tooltype
  171.   (dest
  172.     (tackon
  173.       infrarexx-dest
  174.       "InfraRexxEditor"
  175.     )
  176.   )
  177.   (settooltype
  178.     "HARDWARE"
  179.     (select
  180.       hardware-choice
  181.       "1"
  182.       "2"
  183.       "3"
  184.       "4"
  185.     )
  186.   )
  187. )
  188. (tooltype
  189.   (dest
  190.     (tackon
  191.       infrarexx-dest
  192.       "InfraRexxDaemon"
  193.     )
  194.   )
  195.   (settooltype
  196.     "HARDWARE"
  197.     (select
  198.       hardware-choice
  199.       "1"
  200.       "2"
  201.       "3"
  202.       "4"
  203.     )
  204.   )
  205. )
  206. (complete 35)
  207. ;
  208. ; Check for locale.library
  209. ;
  210. (if
  211.   (>=
  212.     (/
  213.       (getversion "LIBS:locale.library")
  214.       65536
  215.     )
  216.     38
  217.   )
  218.   (
  219.     ;
  220.     ; Guess catalogs to be installed
  221.     ;
  222.     (set catalog-options
  223.       (+
  224.     (if (exists "LOCALE:Catalogs/dansk") 1)
  225.     (if (exists "LOCALE:Catalogs/deutsch") 2)
  226.     (if (exists "LOCALE:Catalogs/italiano") 4)
  227.     (if (exists "LOCALE:Catalogs/nederlands") 8)
  228.     (if (exists "LOCALE:Catalogs/norsk") 16)
  229.     (if (exists "LOCALE:Catalogs/svenska") 32)
  230.        0 ; needed because none, or just one directory may exist,
  231.        0 ; in which case the + has too few arguments.
  232.       )
  233.     )
  234.     ;
  235.     ; Ask for catalogs to be installed
  236.     ;
  237.     (set catalog-options
  238.       (askoptions
  239.         (prompt "Which language catalogs do you want to install?\n"
  240.         (choices
  241.           "Dansk"
  242.           "Deutsch"
  243.           "Italiano"
  244.           "Nederlands"
  245.           "Norsk"
  246.           "Svenska"
  247.         )
  248.         (default catalog-options)
  249.         (help
  250.           "Language catalogs:\n"
  251.           "    Starting with Workbench 2.1, Amiga programs can present "
  252.           "themselves in different languages, as long as program specific "
  253.           "catalogs for that language are present. Here you can select "
  254.           "which language catalogs you would like to install.\n"
  255.           "    Use the Workbench `Locale' Preferences program to select "
  256.           "your preferred language. InfraRexx will appear in that language, "
  257.           "when the language's catalog is available and installed.\n"
  258.           "\n"
  259.           @askoptions-help)
  260.         )
  261.       )
  262.     )
  263.     ;
  264.     ; Install the selected catalogs
  265.     ;
  266.     (set current 0)
  267.     (while
  268.       (< current 6) ;latest number indicates #languages
  269.       (
  270.     (if
  271.       (IN catalog-options current)
  272.       (
  273.         (copyfiles
  274.           (prompt "Copying the selected catalogs...\n")
  275.           (source
  276.         (tackon
  277.           "Catalogs"
  278.           (select current
  279.             "dansk"
  280.             "deutsch"
  281.             "italiano"
  282.             "nederlands"
  283.             "norsk"
  284.             "svenska"
  285.           )
  286.         )
  287.           )
  288.           (pattern
  289.         "#?.catalog"
  290.           )
  291.           (dest
  292.         (tackon
  293.           "LOCALE:Catalogs"
  294.           (select current
  295.             "dansk"
  296.             "deutsch"
  297.             "italiano"
  298.             "nederlands"
  299.             "norsk"
  300.             "svenska"
  301.           )
  302.         )
  303.           )
  304.           (help @copyfiles-help)
  305.         )
  306.       )
  307.     )
  308.     (set current (+ current 1))
  309.       )
  310.     )
  311.   )
  312. )
  313. (complete 40)
  314. ;
  315. ; Rename previous codeset directory if present
  316. ;
  317. (if
  318.   (=
  319.     (exists
  320.       (tackon
  321.      infrarexx-dest
  322.      "Codesets"
  323.       )
  324.       (noreq)
  325.     )
  326.     2
  327.   )
  328.   (
  329.     (transcript "Codesets directory found.")
  330.     (rename
  331.       (tackon
  332.     infrarexx-dest
  333.     "Codesets"
  334.       )
  335.       (tackon
  336.     infrarexx-dest
  337.     "Your_Pre_1.7_Codesets"
  338.       )
  339.       (prompt
  340.     "Renaming your old codesets directory to prevent "
  341.     "overwriting your edited codeset files.\n")
  342.       (help
  343.     "Renaming Codesets directory:\n"
  344.     "    The Install Utility tried to install the codeset "
  345.     "directory, but such a directory was already present. "
  346.     "You are now asked to rename the existing directory, so "
  347.     "that the contained files will not be overwritten. "
  348.     "Select either 'Proceed' to rename the existing directory to "
  349.     "'Your_Pre_1.7_Codesets' or 'Skip' to resume without renaming."
  350.       )
  351.       (confirm)
  352.     )
  353.   )
  354. )
  355. (complete 45)
  356. ;
  357. ; Ask for codeset to be used
  358. ;
  359. (set usedcodeset-options
  360.   (select
  361.     (set usedcodeset-choice
  362.       (askchoice
  363.     (prompt "Please select the command codeset that you want to use initially:\n")
  364.     (choices
  365.      ;"Akai"
  366.       "Canon"
  367.       "CDTV"
  368.      ;"Goldstar"
  369.      ;"Hitachi"
  370.       "JVC"
  371.      ;"Kenwood"
  372.      ;"NEC"
  373.      ;"Onkyo"
  374.       "Panasonic"
  375.       "Philips"
  376.       "Pioneer"
  377.       "Reflex"
  378.       "Samsung"
  379.      ;"Sharp"
  380.       "Sony"
  381.      ;"Teac"
  382.       "Technics"
  383.      ;"Yamaha"
  384.     )
  385.     (default 0)
  386.     (help "Initial codeset selection:\n"
  387.           "    You are asked for a command codeset that will be used if "
  388.           "you start the InfraRexx Daemon immediately after installation. "
  389.           "Please select an electronics brand you possess which you want "
  390.           "InfraRexx to communicate with. Of course you can later change this.\n"
  391.           "\n"
  392.           @askchoice-help
  393.     )
  394.       )
  395.     )
  396.    ;(shiftleft 1 0)  ;Akai
  397.     (shiftleft 1 1)  ;Canon
  398.     (shiftleft 1 2)  ;CDTV
  399.    ;(shiftleft 1 3)  ;Goldstar
  400.    ;(shiftleft 1 4)  ;Hitachi
  401.     (shiftleft 1 5)  ;JVC
  402.    ;(shiftleft 1 6)  ;Kenwood
  403.    ;(shiftleft 1 7)  ;NEC
  404.    ;(shiftleft 1 8)  ;Onkyo
  405.     (shiftleft 1 9)  ;Panasonic
  406.     (shiftleft 1 10)  ;Philips
  407.     (shiftleft 1 11) ;Pioneer
  408.     (shiftleft 1 12) ;Reflex
  409.     (shiftleft 1 13) ;Samsung
  410.    ;(shiftleft 1 14) ;Sharp
  411.     (shiftleft 1 15) ;Sony
  412.    ;(shiftleft 1 16) ;Teac
  413.     (shiftleft 1 17) ;Technics
  414.    ;(shiftleft 1 18) ;Yamaha
  415.   )
  416. )
  417. ;
  418. ; Set FROM tooltype to used codeset
  419. ;
  420. (tooltype
  421.   (dest
  422.     (tackon
  423.       infrarexx-dest
  424.       "InfraRexxDaemon"
  425.     )
  426.   )
  427.   (settooltype
  428.     "FROM"
  429.     (tackon
  430.       infrarexx-dest
  431.       (tackon
  432.     "Codesets"
  433.     (select
  434.       usedcodeset-choice
  435.      ;"Akai"
  436.       "Canon"
  437.       "CDTV"
  438.      ;"Goldstar"
  439.      ;"Hitachi"
  440.       "JVC"
  441.      ;"Kenwood"
  442.      ;"NEC"
  443.      ;"Onkyo"
  444.       "Panasonic"
  445.       "Philips"
  446.       "Pioneer"
  447.       "Reflex"
  448.       "Samsung"
  449.      ;"Sharp"
  450.       "Sony"
  451.      ;"Teac"
  452.       "Technics"
  453.      ;"Yamaha"
  454.     )
  455.       )
  456.     )
  457.   )
  458. )
  459. (complete 50)
  460. ;
  461. ; Ask for additional codesets to be installed
  462. ;
  463. (set additionalcodeset-options
  464.   (askoptions
  465.     (prompt "Please select additional command codesets that you want to install: (Empty codesets are marked with ╣)\n"
  466.     (choices
  467.        "Akai╣"
  468.        "Canon"
  469.        "CDTV"
  470.        "Goldstar╣"
  471.        "Hitachi╣"
  472.        "JVC"
  473.        "Kenwood╣"
  474.        "NEC╣"
  475.        "Onkyo╣"
  476.        "Panasonic"
  477.        "Philips"
  478.        "Pioneer"
  479.        "Reflex"
  480.        "Samsung"
  481.        "Sharp╣"
  482.        "Sony"
  483.        "Teac╣"
  484.        "Technics"
  485.        "Yamaha╣"
  486.     )
  487.     (default usedcodeset-options)
  488.     (help
  489.       "Additional codesets selection:\n"
  490.       "    Here you may choose codesets that will be installed into the "
  491.       "codesets directory; either empty codesets that you use as a base "
  492.       "project for learning new codes, or supplemental codesets for "
  493.       "other electronic brands than that of the initial codeset.\n"
  494.       "\n"
  495.       @askoptions-help)
  496.     )
  497.   )
  498. )
  499. ;
  500. ; Merge the used and additional codesets together
  501. ;
  502. (set codesets-options
  503.   (BITOR
  504.     usedcodeset-options
  505.     additionalcodeset-options
  506.   )
  507. )
  508. ;
  509. ; Install the selected codesets
  510. ;
  511. (set current 0)
  512. (while
  513.   (< current 17) ;latest number indicates #codesets
  514.   (
  515.     (if
  516.       (IN codesets-options current)
  517.       (
  518.     (copyfiles
  519.       (prompt "Copying the selected codesets...\n")
  520.       (source
  521.         (tackon
  522.           "Codesets"
  523.           (select
  524.         current
  525.         "Akai"
  526.         "Canon"
  527.         "CDTV"
  528.         "Goldstar"
  529.         "Hitachi"
  530.         "JVC"
  531.         "Kenwood"
  532.         "NEC"
  533.         "Onkyo"
  534.         "Panasonic"
  535.         "Philips"
  536.         "Pioneer"
  537.         "Reflex"
  538.         "Samsung"
  539.         "Sharp"
  540.         "Sony"
  541.         "Teac"
  542.         "Technics"
  543.         "Yamaha"
  544.           )
  545.         )
  546.       )
  547.       (dest
  548.         (tackon infrarexx-dest "Codesets")
  549.       )
  550.       (help @copyfiles-help)
  551.     )
  552.       )
  553.     )
  554.     (set current (+ current 1))
  555.   )
  556. )
  557. (complete 55)
  558. ;
  559. ; Guess documentation to be installed
  560. ;
  561. (set documentation-options
  562.   (if
  563.     (=
  564.       hardware-choice
  565.       2
  566.     )
  567.     3
  568.     31)
  569. )
  570. ;
  571. ; Ask for documentation to be installed
  572. ;
  573. (set documentation-options
  574.   (askoptions
  575.     (prompt "What documentation do you want to install?\n"
  576.     (choices "InfraRexx User Guide"
  577.          "Hardware Info/Build/Patch Guide"
  578.          "Hardware Schematic (IFF format)"
  579.          "Hardware PCB Layout (IFF format)"
  580.          "Hardware PCB Layout (Postscript format)"
  581.     )
  582.     (default documentation-options)
  583.     (help "Documentation description:\n"
  584.       "    The InfraRexx User Guide describes every aspect of this package, "
  585.       "except the hardware construction. It is therefore advisable to "
  586.       "install and read this guide.\n"
  587.       "\n"
  588.       "    The hardware can be ordered from the authors (read the "
  589.       "InfraRexx User Guide), but you can also build it yourself. "
  590.       "For this purpose, there is a Hardware Guide to guide you "
  591.       "through the building process in a comfortable way. For users "
  592.       "who already have the hardware, there are patch instructions "
  593.       "to upgrade it.\n"
  594.       "\n"
  595.       "    Choose the Hardware Schematic and/or Print Circuit Board "
  596.       "Layouts as a source for your hardware. Both are available in "
  597.       "IFF bitmap format, common to the Amiga, while the layout is "
  598.       "available in PostScript as well, used by professional "
  599.       "(laser)printers.\n"
  600.       "\n"
  601.       @askoptions-help)
  602.     )
  603.   )
  604. )
  605. (complete 60)
  606. ;
  607. ; Determine if MultiView exists on this system
  608. ;
  609. (set multiview-exists
  610.   (exists
  611.     "SYS:Utilities/MultiView"
  612.     (noreq)
  613.   )
  614. )
  615. ;
  616. ; Install InfraRexx User Guide if selected
  617. ;
  618. (if
  619.   (IN documentation-options 0)
  620.   (
  621.      (copyfiles
  622.       (prompt "Installing the InfraRexx User Guide...")
  623.       (source "InfraRexx.guide")
  624.       (dest
  625.     (set userguide-dest
  626.       (askdir
  627.         (prompt "Select a place for the InfraRexx User Guide.")
  628.         (default infrarexx-dest)
  629.         (help @askdir-help)
  630.       )
  631.     )
  632.       )
  633.       (infos)
  634.       (help @copyfiles-help)
  635.     )
  636.     (copyfiles
  637.       (source
  638.     (tackon
  639.       icons-source
  640.       "InfraRexx.guide.info"
  641.     )
  642.       )
  643.       (dest userguide-dest)
  644.     )
  645.     (copyfiles
  646.       (prompt "Installing the InfraRexx Order Form...")
  647.       (source "OrderForm")
  648.       (dest userguide-dest)
  649.       (help @copyfiles-help)
  650.       (infos)
  651.     )
  652.     (copyfiles
  653.       (source
  654.     (tackon
  655.       icons-source
  656.       "OrderForm.info"
  657.     )
  658.       )
  659.       (dest userguide-dest)
  660.     )
  661.     (if
  662.       multiview-exists
  663.       (tooltype
  664.     (dest
  665.       (tackon userguide-dest "InfraRexx.guide")
  666.     )
  667.     (setdefaulttool "MultiView")
  668.       )
  669.     )
  670.   )
  671. )
  672. (complete 70)
  673. ;
  674. ; Install InfraRexx Hardware Guide if selected
  675. ;
  676. (if
  677.   (IN documentation-options 1)
  678.   (
  679.     (copyfiles
  680.       (prompt "Installing the Hardware Building Guide...")
  681.       (source "Hardware/Hardware.guide")
  682.       (dest
  683.     (tackon
  684.       infrarexx-dest
  685.       "Hardware"
  686.     )
  687.       )
  688.       (infos)
  689.       (help @copyfiles-help)
  690.     )
  691.     (copyfiles
  692.       (source
  693.     (tackon
  694.       icons-source
  695.       "Hardware/Hardware.guide.info"
  696.     )
  697.       )
  698.       (dest
  699.     (tackon
  700.       infrarexx-dest
  701.       "Hardware"
  702.     )
  703.       )
  704.     )
  705.     (if
  706.       multiview-exists
  707.       (tooltype
  708.     (dest
  709.       (tackon infrarexx-dest "Hardware/Hardware.guide")
  710.     )
  711.     (setdefaulttool "MultiView")
  712.       )
  713.     )
  714.   )
  715. )
  716. (complete 75)
  717. ;
  718. ; Install InfraRexx Hardware Schematic if selected
  719. ;
  720. (if
  721.   (IN documentation-options 2)
  722.   (
  723.     (copyfiles
  724.       (prompt "Installing the Hardware Schematic...")
  725.       (source "Hardware/Schematic.iff")
  726.       (dest
  727.     (tackon
  728.       infrarexx-dest
  729.       "Hardware"
  730.     )
  731.       )
  732.       (infos)
  733.       (help @copyfiles-help)
  734.     )
  735.     (copyfiles
  736.       (source
  737.     (tackon
  738.       icons-source
  739.       "Hardware/Schematic.iff.info"
  740.     )
  741.       )
  742.       (dest
  743.     (tackon
  744.       infrarexx-dest
  745.       "Hardware"
  746.     )
  747.       )
  748.     )
  749.     (if
  750.       multiview-exists
  751.       (tooltype
  752.     (dest
  753.       (tackon infrarexx-dest "Hardware/Schematic.iff")
  754.     )
  755.     (setdefaulttool "MultiView")
  756.       )
  757.     )
  758.   )
  759. )
  760. (complete 80)
  761. ;
  762. ; Install InfraRexx Hardware Layouts (IFF) if selected
  763. ;
  764. (if
  765.   (IN documentation-options 3)
  766.   (
  767.     (copyfiles
  768.       (prompt "Installing the Hardware Layouts (IFF)...")
  769.       (source "Hardware")
  770.       (dest
  771.     (tackon
  772.       infrarexx-dest
  773.       "Hardware"
  774.     )
  775.       )
  776.       (choices
  777.     "SilkScreen.iff"
  778.     "ComponentSide.iff"
  779.     "SolderSide.iff"
  780.       )
  781.       (infos)
  782.       (help @copyfiles-help)
  783.     )
  784.     (copyfiles
  785.       (source
  786.     (tackon
  787.       icons-source
  788.       "Hardware"
  789.     )
  790.       )
  791.       (dest
  792.     (tackon
  793.       infrarexx-dest
  794.       "Hardware"
  795.     )
  796.       )
  797.       (choices
  798.     "SilkScreen.iff.info"
  799.     "ComponentSide.iff.info"
  800.     "SolderSide.iff.info"
  801.       )
  802.     )
  803.     (if
  804.       multiview-exists
  805.       (
  806.     (tooltype
  807.       (dest
  808.         (tackon infrarexx-dest "Hardware/SilkScreen.iff")
  809.       )
  810.       (setdefaulttool "MultiView")
  811.     )
  812.     (tooltype
  813.       (dest
  814.         (tackon infrarexx-dest "Hardware/ComponentSide.iff")
  815.       )
  816.       (setdefaulttool "MultiView")
  817.     )
  818.     (tooltype
  819.       (dest
  820.         (tackon infrarexx-dest "Hardware/SolderSide.iff")
  821.       )
  822.       (setdefaulttool "MultiView")
  823.     )
  824.       )
  825.     )
  826.   )
  827. )
  828. (complete 85)
  829. ;
  830. ; Install InfraRexx Hardware Layouts (PostScript) if selected
  831. ;
  832. (if
  833.   (IN documentation-options 4)
  834.   (
  835.     (copyfiles
  836.       (prompt "Installing the Hardware Layouts (PostScript)...")
  837.       (source "Hardware")
  838.       (dest
  839.     (tackon
  840.       infrarexx-dest
  841.       "Hardware"
  842.     )
  843.       )
  844.       (choices
  845.     "ComponentSide.ps"
  846.     "SolderSide.ps"
  847.       )
  848.       (infos)
  849.       (help @copyfiles-help)
  850.     )
  851.   )
  852. )
  853. (complete 90)
  854. ;
  855. ; Ask for examples to be installed
  856. ;
  857. (set examples-options
  858.   (askoptions
  859.     (prompt "Please select any examples you want to install:"
  860.     (choices "Scala Example"
  861.          "Toolmanager Example"
  862.     )
  863.     (default 3)
  864.     (help
  865.        "Examples:\n"
  866.        "    These examples show you some ways of using InfraRexx. "
  867.        "Use your imagination and available software to achieve "
  868.        "other ways of using this product, that even the authors "
  869.        "didn't think of.\n"
  870.        "    And ehh..., feel free to let us know what that might be...:-)\n"
  871.        "\n"
  872.        @askoptions-help)
  873.     )
  874.   )
  875. )
  876. ;
  877. ; Install the selected examples
  878. ;
  879. (set current 0)
  880. (while
  881.   (< current 2) ;latest number indicates #examples
  882.   (
  883.     (if
  884.       (IN examples-options current)
  885.       (
  886.     (copyfiles
  887.       (prompt "Copying the selected examples...\n")
  888.       (source
  889.         "Examples"
  890.       )
  891.       (pattern
  892.         (select
  893.            current
  894.            "Scala"
  895.            "ToolManager"
  896.         )
  897.       )
  898.       (dest
  899.         (tackon infrarexx-dest "Examples")
  900.       )
  901.       (infos)
  902.       (help @copyfiles-help)
  903.     )
  904.     (copyfiles
  905.       (source
  906.         (tackon
  907.           icons-source
  908.           "Examples"
  909.         )
  910.       )
  911.       (pattern
  912.         (select
  913.            current
  914.            "Scala"
  915.            "ToolManager"
  916.         )
  917.       )
  918.       (dest
  919.         (tackon infrarexx-dest "Examples")
  920.       )
  921.       (infos)
  922.       (help @copyfiles-help)
  923.     )
  924.       )
  925.     )
  926.     (set current (+ current 1))
  927.   )
  928. )
  929. (complete 95)
  930. ;
  931. ; Ask for RexxEvent to be installed
  932. ;
  933. (set rexxevent-bool
  934.   (askbool
  935.     (prompt
  936.       "Install the handy 'RexxEvent' software?\n\n"
  937.       "Besides remote-controlling programs via ARexx, "
  938.       "you can steer them via keypresses and other inputevents, "
  939.       "if you have RexxEvent running.\n"
  940.     )
  941.     (help
  942.        "RexxEvent\n"
  943.        "    This small program enables you to force events to happen "
  944.        "using ARexx. An event can be the touch of a key, or the click "
  945.        "of a mousebutton, etc. In combination with the InfraRexxDaemon, "
  946.        "this enables you to control certain software via your remote "
  947.        "controller, that would otherwise not be controllable via ARexx.\n"
  948.     )
  949.   )
  950. )
  951. ;
  952. ; Install RexxEvent
  953. ;
  954. (if
  955.   (=
  956.     rexxevent-bool
  957.     1
  958.   )
  959.   (
  960.     (copyfiles
  961.       (prompt "Copying RexxEvent...\n")
  962.       (source
  963.     "RexxEvent"
  964.       )
  965.       (all)
  966.       (dest
  967.     (tackon infrarexx-dest "RexxEvent")
  968.       )
  969.       (infos)
  970.       (help @copyfiles-help)
  971.     )
  972.     (copyfiles
  973.       (source
  974.     (tackon
  975.       icons-source
  976.       "RexxEvent"
  977.     )
  978.       )
  979.       (dest
  980.     (tackon
  981.       infrarexx-dest
  982.       "RexxEvent"
  983.     )
  984.       )
  985.       (choices
  986.     "RexxEvent.info"
  987.     "RexxEvent.doc.info"
  988.       )
  989.     )
  990.   )
  991. )
  992. (complete 100)
  993.  
  994. (exit "You have just installed release 1.7 of InfraRexx.\n"
  995.       "\n"
  996.       "Good for you!\n"
  997.       "\n"
  998.       "InfraRexx and InfraJoy are\n"
  999.       "⌐ 1994-1995 by Leon Woestenberg\n"
  1000.       "(Digital Disturbance) and\n"
  1001.       "Jeroen Steenblik.\n"
  1002. )
  1003.